package com.atguigu.jxc;

import lombok.Data;

public class Test1 {
    public static void main(String[] args) {
        String s = new String();
        s="asd";
        asd asd = new asd();
        asd.setName("asd");
        System.out.println(asd.getName()==s);
        sda sda = new sda();
        sda.setName("asd");
        System.out.println(sda.getName()==asd.getName());
    }
}
@Data
class asd{
    String name;
}
@Data
class sda{
    String name;
}
